package com.wk.service.implement;

import com.wk.dao.Mapdao;
import com.wk.pojo.Class;
import com.wk.pojo.Stu_map;
import com.wk.pojo.Tea_map;
import com.wk.service.Mapservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @program: thesis
 * @description: 地图的功能类
 * @author: 王侃
 * @create: 2020-03-06 08:46
 **/
@Service
public class Mapserviceimpl implements Mapservice {

    @Autowired
    Mapdao mapdao;

    @Override
    public List<Class> selectbyallclass() {
        return mapdao.selectbyallclass();
    }

    @Override
    public void insertintoTea_map(Tea_map map) {
        mapdao.insertintoTea_map(map);
    }

    @Override
    public List<Tea_map> selectbyclass_id_map(Integer class_id) {
        return mapdao.selectbyclass_id_map(class_id);
    }

    @Override
    public Integer selectbydeadline_id(Integer id) {
        return mapdao.selectbydeadline_id(id);
    }

    @Override
    public Stu_map selectbyuser_id_tm_id(Integer stu_id, Integer tea_map_id) {
        return mapdao.selectbyuser_id_tm_id(stu_id, tea_map_id);
    }

    @Override
    public Tea_map selectbyidtea_map(Integer id) {
        return mapdao.selectbyidtea_map(id);
    }

    @Override
    public void insertintoStu_map(Stu_map map) {
        mapdao.insertintoStu_map(map);
    }

    @Override
    public Integer checknow_time(Date time, Integer id) {
        return mapdao.checknow_time(time, id);
    }

    @Override
    public List<Stu_map> selectbyteaid_stumap(Integer tea_id) {
        return mapdao.selectbyteaid_stumap(tea_id);
    }

    @Override
    public List<Tea_map> selectbyteaid_teamap(Integer user_id) {
        return mapdao.selectbyteaid_teamap(user_id);
    }
}
